package com.chen.bpsptsystem.controller.page;

import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.servlet.ModelAndView;


@Controller
@RequestMapping("/page/")
public class PageController {

    //去首页
    @RequestMapping("indexPage")
    public ModelAndView indexPage() {
        return new ModelAndView("/front/index");
    }

    @RequestMapping("login")
    public ModelAndView login() {
        return new ModelAndView("/front/login");
    }

    //未授权页面
    @RequestMapping("unPermission")
    public ModelAndView unPermission() {
        return new ModelAndView("/front/403");
    }

    //去注册界面
    @RequestMapping("regUI")
    public ModelAndView regUI() {
        return new ModelAndView("front/register");
    }

    //我的
    @RequestMapping("setting")
    public ModelAndView setting() {
        return new ModelAndView("front/user/setting");
    }

    //去userInfoUI页面
    @RequestMapping("userInfoUI")
    public ModelAndView userInfoUI() {
        return new ModelAndView("front/user/userInfo");
    }

    //去修改密码界面
    @RequestMapping("updatePwdUI")
    public ModelAndView updatePwdUI() {
        return new ModelAndView("front/user/updatePwd");
    }

    //去修改头像界面
    @RequestMapping("updateImgUI")
    public ModelAndView updateImgUI() {
        return new ModelAndView("front/user/updateImg");
    }

    //去修改头像界面
    @RequestMapping("class")
    public ModelAndView myClass() {
        return new ModelAndView("front/user/myClass");
    }

    //去修改头像界面
    @RequestMapping("studyPro")
    public ModelAndView studyPro() {
        return new ModelAndView("front/user/myStudyPro");
    }

    //去兴趣班详情
    @RequestMapping("classDetailUI")
    public ModelAndView classDetailUI(){
        return new ModelAndView("front/business/cateDetail");
    }

//    教师端
    //去教师首页
    @RequestMapping("teacher/indexPage")
    public ModelAndView teachIndex(){
        return new ModelAndView("teacher/index");
    }



    //去资料详情页面
    @RequestMapping("matDetailPage")
    public ModelAndView matDetailPage(){
        return new ModelAndView("front/good/matDetail");
    }

}
